/*
** my_strlcat.c for my_strlcat in /home/nadali_t//afs/rendu/lib/my/src
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Wed Oct 10 17:13:52 2012 thomas nadalie
** Last update Mon Nov 19 16:56:02 2012 thomas nadalie
*/

#include	"my.h"

int		my_strlcat(char *dest, char *src, int size)
{
  int		i;
  int		j;

  i = 0;
  j = 0;
  while (dest[j])
    j++;
  if (size < j)
    return (0);
  while (src[i] && i < size)
    {
      dest[j + i] = src[i];
      i++;
    }
  dest[j + i] = '\0';
  return (size);
}
